package com.linzt.candy.wxmp.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.linzt.candy.wxmp.domain.WxMpArticle;
import com.linzt.candy.wxmp.mapper.WxMpArticleMapper;
import com.linzt.candy.wxmp.service.IWxMpArticleService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author linzt
 * @Date 2020/12/219:08 上午
 * @Description 文章服务实现类
 * @Version 1.0
 */
@Service
public class WxMpArticleServiceImpl extends ServiceImpl<WxMpArticleMapper, WxMpArticle> implements IWxMpArticleService {

    private static final Logger logger = LoggerFactory.getLogger(WxMpUserServiceImpl.class);
    @Resource
    private WxMpArticleMapper wxMpArticleMapper;

    @Override
    public List<WxMpArticle> findByMaterialId(String materiaId) {
        return wxMpArticleMapper.findByMaterialId(materiaId);
    }
}
